package com.beidouapp.manager.impl;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.beidouapp.dao.PlatVersionMapper;
import com.beidouapp.domain.pojo.PlatVersion;
import com.beidouapp.manager.PlatVersionManager;

@Repository
public class PlatVersionManagerImpl implements PlatVersionManager {

	@Autowired
	private PlatVersionMapper mapper;

	@Override
	public int insert(PlatVersion vo) {
		return mapper.insert(vo);
	}

	@Override
	public int existByVersion(String Version) {
		return mapper.existByVersion(Version);
	}

	@Override
	public PlatVersion selectByVersion(String Version) {
		return mapper.selectByVersion(Version);
	}

	@Override
	public List<PlatVersion> selectBy(String queryStr, int offset, int limit) { 
		return mapper.selectBy(queryStr,new RowBounds(offset,limit));
	}

	@Override
	public int delete(long id) { 
		return mapper.delete(id);
	}

}
